from core import PeaceType;
from core import PlayerColor;

def getPeaceColor(peaceType):
    try:
        if(PeaceType.WHITE_PEACES.count(peaceType)):
            return PlayerColor.WHITE;
        if(PeaceType.BLACK_PEACES.count(peaceType)):
            return PlayerColor.BLACK;
    except:
        pass;
    return None;